<template>
  <VanImage class="base-image" :src="formatImageUrl(src)">
    <template v-for="(value, slot) in slots" :key="slot" #[slot]>
      <slot :name="slot"></slot>
    </template>
  </VanImage>
</template>

<script setup>
import { formatImageUrl } from "@/utils/imageUtils.js";
import { useSlots } from "vue";

defineProps({
  src: String,
});
let slots = useSlots();
</script>

<style lang="scss" scoped></style>
